package org.example.camundaapp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.web.SecurityFilterChain;

/**
 * @className: SecurityConfig
 * @author: ZHRJ
 * @date: 2025-06-24 10:21
 * @Version: 1.0
 * @description:
 * spring-boot-starter-security 和 camunda-bpm-spring-boot-starter-rest-api 冲突,
 * 导致登录http://localhost:8080/camunda/app/ 查看流程管理失败
 */
///@Configuration
//@EnableWebSecurity
public class SecurityConfig {

    //@Bean
    /*public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
        http
                // 忽略 Camunda Webapps 相关路径的安全检查
                .authorizeRequests(auth -> auth
                        .antMatchers(
                                "/camunda/app/**",
                                "/camunda/api/**",
                                "/api/**",
                                "/engine-rest/**"
                        ).permitAll()
                        .anyRequest().authenticated()
                );
        return http.build();
    }*/
}
